package com.project.service.bean;

public class StudentBean {
    private int id;
    private String name;
    private ClassBean classBean;

    public StudentBean(int id,String name,String className) {
        this.id = id;
        this.name = name;
        this.classBean = new ClassBean();
        this.classBean.setName(className);
    }

    public StudentBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", classBean=" + classBean +
                '}';
    }
}
